body { margin: 0; padding: 0; background: #f5f6fa; display: flex; min-height: 100vh; }
.main-wrapper { display: flex; width: 100%; }
.sidebar {
    width: 240px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.sidebar h3 {
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 32px 0 16px 0;
    letter-spacing: 2px;
    font-size: 1.3rem;
    margin-bottom: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0 0 32px 0;
    margin: 0;
    flex: 1;
}
.sidebar ul li {
    margin: 0;
}
.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 14px 32px;
    color: #e3e6f0;
    text-decoration: none;
    font-size: 1.08rem;
    border-left: 4px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border-radius: 0 24px 24px 0;
    margin-bottom: 2px;
}
.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left: 4px solid #f6c23e;
    font-weight: bold;
}
.sidebar ul li a .icon {
    margin-right: 10px;
    font-size: 1.2em;
}
.main-content { flex-grow: 1; padding: 20px; background-color: #f5f6fa; }
.info-card { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* Custom styles for registerAppointment page */
.top-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.search-input {
    width: 25%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-success {
    background-color: #1cc88a;
    color: white;
}

.btn-success:hover {
    background-color: #17a673;
}

.btn-primary {
     background-color: #4e73df;
     color: white;
}

.btn-primary:hover {
    background-color: #2e59d9;
}

.btn-danger {
    background-color: #e74a3b;
    color: white;
}

.btn-danger:hover {
    background-color: #da1f0c;
}

.btn-secondary {
    background-color: #858796;
    color: white;
}

.btn-secondary:hover {
    background-color: #6c6e7e;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.me-2 {
    margin-right: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f8f9fc;
}

tr:hover {
    background-color: #e9ecef;
}

.text-center {
    text-align: center;
}

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    justify-content: center;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.375rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

.modal-mask {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    width: 400px;
    max-width: 90vw;
    padding: 0;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.modal-close {
    font-size: 1.3rem;
    cursor: pointer;
    color: #888;
}

.modal-body {
    padding: 20px;
}

.mb-3 {
    margin-bottom: 1rem;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.modal-footer .btn {
    margin-left: 10px;
} 